/****** Object:  Table [dbo].[flightPrice]    ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[flightPrice](
	[flightPriceId] [int] IDENTITY(1,1) NOT NULL,
	[flightScheduleId] [int] NULL,
	[price] [float] NULL,
	[seatTypeCode] [nchar](10) NULL,
 CONSTRAINT [PK_flightPrice] PRIMARY KEY CLUSTERED 
(
	[flightPriceId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

ALTER TABLE [dbo].[flightPrice]  WITH CHECK ADD  CONSTRAINT [FK_flightPrice_flightSchedule] FOREIGN KEY([flightScheduleId])
REFERENCES [dbo].[flightSchedule] ([flightScheduleId])
GO

ALTER TABLE [dbo].[flightPrice] CHECK CONSTRAINT [FK_flightPrice_flightSchedule]
GO

ALTER TABLE [dbo].[flightPrice]  WITH CHECK ADD  CONSTRAINT [FK_flightPrice_seatType] FOREIGN KEY([seatTypeCode])
REFERENCES [dbo].[seatType] ([seatTypeCode])
GO

ALTER TABLE [dbo].[flightPrice] CHECK CONSTRAINT [FK_flightPrice_seatType]
GO

